package com.tuo51.bizgame.doctorcat.domain;

import com.tuo51.foudation.model.Domain;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

@Data
@Entity
@Table(name = "dc_bonus")
@EqualsAndHashCode(callSuper = true)
public class Bonus extends Domain {
    @Column(columnDefinition = "varchar(128) COMMENT '图标' ")
    private String icon;

    @Column(columnDefinition = "varchar(128) COMMENT '奖励名称' ")
    private String name;

    @Column(columnDefinition = "varchar(128) COMMENT '奖励子标题' ")
    private String subtitle;

    @Column(columnDefinition = "int default 0 COMMENT '开放等级'")
    private Integer level;

    @Column(columnDefinition = "int default 0 COMMENT '积分'")
    private Integer score;

    @Column(columnDefinition = "int default 0 COMMENT '奖励类型'")
    private Integer type;

    @Column(columnDefinition = "int default 0 COMMENT '奖励类型'")
    private Integer rate;

    @Column(columnDefinition = "int default 0 COMMENT '限额'")
    private Integer quota;

    @Column(columnDefinition = "int default 0 COMMENT '用量'")
    private Integer usedCount;

    @Column(columnDefinition = "varchar(128) COMMENT '合作方的接口数据' ")
    private String partnerInfo;

}
